import React from "react";
import storeOne from '../store/storeOne';
import { useObserver } from 'mobx-react';

// 第一种直接引入store消费

function RenderInput() {
  return useObserver(() => (
    <div>
      <h1>{storeOne.testValue}</h1>
      <button onClick={() => { storeOne.finsh('aaaa') }}>改变</button>
    </div>
  ))
}

export default RenderInput
